
package DBLayer;
import ModelLayer.Order;
import java.util.ArrayList;

/**
 * @version 12/22/2011
 * @author Gruppe 4
 */

public interface IFDBOrder 
{
    //get all orders of a specified customer
    public ArrayList<Order> findOrders(int personId, boolean retrieveAssociation);
    public ArrayList<Order> findOrdersByOrderId(int orderId, boolean retrieveAssociation);
    //get one Order having the specified order id
    public Order searchOrderId(int orderId, boolean retriveAssociation);
    //get one Order having the date of the order
    public ArrayList<Order> searchOrderDate(String orderDate, boolean retriveAssociation);
    //insert a new Order
    public int insertOrder(Order order) throws Exception;
    //update an order
    public int updateOrder(Order orderId);
    //delete an Order
    public int deleteOrder(int orderId);
    public int getMaxId();
    
}
